﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DDD;
using Xunit;

namespace DokiDokiTest {
    public class TestPolygonMode {
        [Fact]
        public void Test_New1 () {
            var pmode = new PolygonMode ();

            Assert.Equal (CullingMode.Back, pmode.Culling);
            Assert.Equal (WindingMode.CCW, pmode.Winding);
            Assert.Equal (1.0f, pmode.LineWidth);
        }

        [Fact]
        public void Test_SetCulling () {
            var pmode = new PolygonMode ();
            pmode.SetCulling (CullingMode.None);

            Assert.Equal (CullingMode.None, pmode.Culling);
        }

        [Fact]
        public void Test_SetWinding () {
            var pmode = new PolygonMode ();
            pmode.SetWinding (WindingMode.CW);

            Assert.Equal (WindingMode.CW, pmode.Winding);
        }

        [Fact]
        public void Test_SetLineWidth () {
            var pmode = new PolygonMode ();
            pmode.SetLineWidth (2.0f);

            Assert.Equal (2.0f, pmode.LineWidth);
        }
    }
}
